export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "ID",
      prop: "id",
      type: "input",
      display: false
    },
    // {
    //   label: "创建人",
    //   prop: "createUser",
    //   type: "input",
    // },
    // {
    //   label: "创建部门",
    //   prop: "createDept",
    //   type: "input",
    // },
    // {
    //   label: "创建时间",
    //   prop: "createTime",
    //   type: "input",
    // },
    // {
    //   label: "修改人",
    //   prop: "updateUser",
    //   type: "input",
    // },
    // {
    //   label: "修改时间",
    //   prop: "updateTime",
    //   type: "input",
    // },
    {
      label: "名称",
      prop: "name",
      type: "input",
    },
    {
      label: "副标题",
      prop: "subtitle",
      type: "input",
    },

    {
      label: "封面",
      prop: "coverImage",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
    },
    {
      label: "状态",
      prop: "status",
      type: "radio",
      value: 1,
      search: true,
      dicData: [
        { label: '禁用', value: 0 },
        { label: '启用', value: 1 }
      ]
    },

    {
      label: "剩余数量",
      prop: "remainingQuantity",
      type: "number",
      min: 0,
      step: 1,
      max: 9999
    },
    {
      label: "兑换积分数",
      prop: "requiredIntegral",
      type: "number",
      min: 10,
      step: 10,
      max: 100000
    },
    {
      label: "是否上架",
      prop: "isEnabled",
      type: "radio",
      value: 1,
      search: true,
      dicData: [
        { label: '下架', value: 0 },
        { label: '上架', value: 1 }
      ]
    },
    {
      label: "排序",
      prop: "sort",
      type: "number",
      value: 0,
      min: 0,
      max: 999,
      step: 1,
      hide: true
    },
  ]
}
